﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace TIS.SPAuditDemo
{
    class ScratchPad
    {
        public void getEntry()
        {
            //SPSite oSiteCollection = new SPSite("aaa");
            //SPWeb web = oSiteCollection.OpenWeb();
            //SPList list = web.Lists[1];
            //SPListItem item = new SPListItem();

            //SPAuditQuery oAuditQuery = new SPAuditQuery(oSiteCollection);            
            //oAuditQuery.RestrictToListItem(item);
            
            //SPAuditQuery oAuditQuery = new SPAuditQuery(web);            
            //oAuditQuery. .re .RestrictToListItem(item);



            //SPAuditEntryCollection collAuditEntries = oSiteCollection.Audit.GetEntries(oAuditQuery);

            //foreach (SPAuditEntry oAuditEntry in collAuditEntries)
            //{
            //    // get info from audit log
            //}
        }

    }
}
